package com.byedu.domain.focus.vo.enumvos;

/**
 * Created by jason on 2017/5/20.
 */
public class FocusStatusTypeVO {
    private int code;
    private String value;

    public FocusStatusTypeVO() {
    }

    public FocusStatusTypeVO(int code) {
        for (FocusStatusTypeEnum focusStatusTypeEnum : FocusStatusTypeEnum.values()) {
            if (focusStatusTypeEnum.getCode() == code) {
                this.code = code;
                this.value = focusStatusTypeEnum.getValue();
            }
        }
    }

    public FocusStatusTypeVO(FocusStatusTypeEnum focusStatusTypeEnum) {
        this.code = focusStatusTypeEnum.getCode();
        this.value = focusStatusTypeEnum.getValue();
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString()
    {
        return this.code+":"+this.value;
    }
}
